package com.heatingcharge.service.sys.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.heatingcharge.entity.sys.SysRoleMenu;
import com.heatingcharge.mapper.sys.SysRoleMenuMapper;
import com.heatingcharge.service.sys.ISysRoleMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 角色菜单表 服务实现类
 * </p>
 *
 * @author devin.jiang
 * @since 2019-06-27
 */
@Service
public class SysRoleMenuServiceImpl extends ServiceImpl<SysRoleMenuMapper, SysRoleMenu> implements ISysRoleMenuService {

    @Override
    public Integer deleteByRoleId(Integer roleId) {
        QueryWrapper<SysRoleMenu> wrapper=new QueryWrapper<>();
        wrapper.eq("role_id",roleId);
        return baseMapper.delete(wrapper);
    }
}
